package com.hw.springcloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Classname: AccountEntity
 * @Description: 描述
 * @Date: 2021/12/22
 * @Author: HuWei
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_account")
public class AccountEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Long userId;

    private BigDecimal total;

    private BigDecimal used;

    private BigDecimal residue;
}
